/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.vsu.csf.qasystem.morph.enumtypes;

/**
 * Лицо
 * @author Руслан
 */
public enum Person {
    /**
     * Первое лицо
     */
    First,

    /**
     * Второе лицо
     */
    Second,

    /**
     * Третье лицо
     */
    Third,

    /**
     * Безличное
     */
    Impersonal;

    /**
     * 
     * @param n
     * @return
     */
    public static Person valueOf(int n) {
        switch (n) {
            case 1: return Person.First;
            case 2: return Person.Second;
            case 3: return Person.Third;
            case 4: return Person.Impersonal;
        }
        return Person.Impersonal;
    }
}
